package com.example.LifeCycle.commons;

import lombok.Data;

/**
 * @Description TODO
 * @Date 2024/5/15 10:37
 * @Created by houjunfeng
 */
@Data
public class Person {
    public String name;
    public Integer age;

    public Person(String name,Integer age){
        this.name=name;
        this.age=age;
    }

    public Person(){
        System.out.println("创建Person对像");
    }

    public void init(){
        System.out.println("初始化方法");
    }
    public void destory(){
        System.out.println("销毁方法方法");
    }
}
